package com.demo.dao;

import com.demo.entity.Clientele;
import com.demo.vo.ClienteleVo;

import java.util.List;

public interface IClienteleDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Clientele record);

    int insertSelective(Clientele record);

    Clientele selectByPrimaryKey(Integer id);

    /**
     *通过com_name && unitCode 查找
     * @param clientele
     * @return
     */
    Clientele selectByComNameAndUnitCode(Clientele clientele);

    int updateByPrimaryKeySelective(Clientele record);

    int updateByPrimaryKeyWithBLOBs(Clientele record);

    int updateByPrimaryKey(Clientele record);

    List<Clientele> queryByPage(ClienteleVo arg);

    /**
     * 我的客户
     *
     * @param arg
     * @return
     */
    List<Clientele> queryMyClientele(ClienteleVo arg);

    int queryCount(ClienteleVo arg);
}